package main

import (
	"net/rpc"
	"fmt"
	"./mather"
)

func main() {
	op:=mather.TwoInt{23,45}
	result:=0

	client,err:=rpc.DialHTTP("tcp", "localhost:3000")
	if err!=nil {
		panic(err)
	}

	call:=client.Go("xiaomaomao.Add", op, &result, nil)
	select {
		case <-call.Done:
		fmt.Println(result)
	}
}
